package com.yeyks.common.result;

import com.yeyks.common.annotation.StrNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author fuchangshuai
 * @date 2019/08/12 16:10
 */
@Data
public class OrderPickWebSocket implements Serializable {

    private static final long serialVersionUID = 2325209819866508489L;
    @ApiModelProperty(value = "用户发布时间")
    @NotNull(message = "用户发布时间不能为空")
    private Long timestamp;

    @ApiModelProperty(value = "对应的操作用户ID")
    @NotNull(message = "对应的操作用户id不能为空")
    private Integer userId;

    @ApiModelProperty(value = "对应的操作用户手机号")
    @StrNotEmpty
    private String phone;

    @ApiModelProperty(value = "酒店ID")
    @NotNull(message = "酒店id不能为空")
    private Integer hotelId;

    @ApiModelProperty(value = "操作人ID")
    @NotNull(message = "操作人id不能为空")
    private Integer operatorId;

    @ApiModelProperty(value = "房间ID", hidden = true)
    private List<Integer> roomIds;

    @ApiModelProperty(value = "用户出价")
    @NotNull(message = "用户出价不能为空")
    private Integer userShowPrice;

    @ApiModelProperty(value = "入住时间")
    @NotNull(message = "入住时间不能为空")
    private Long checkIn;

    @ApiModelProperty(value = "离店时间")
    @NotNull(message = "离店时间不能为空")
    private Long checkOut;

    @ApiModelProperty(value = "0:自动  1：手动")
    private Integer manualPickOrder = 1;

    @ApiModelProperty(value = "yyks:平台   cn:龙腾 ")
    @StrNotEmpty(message = "来源不能为空")
    private String sourceType;

    @StrNotEmpty(message = "酒店来源id不能为空")
    private String soureHotelId;

//    @StrNotEmpty(message = "房间来源id不能为空")
//    private String sourceRoomId;
}
